package com.hzw.saas.service.hpc.service;

import com.hzw.saas.api.hpc.bo.HpcAccountProviderBo;
import com.hzw.saas.service.hpc.service.bo.SlurmAccountBO;

import java.util.List;

/**
 * @author sonam
 * @sine 2021/9/13 2:07 下午
 */
public interface IHpcAccountSlurmService {

    /**
     * 获取Slurm队列集合
     * @return
     */
    List<SlurmAccountBO> getSlurmAccounts();

    /**
     * 根据slurm名称获取
     * @param slurmAccount
     * @return
     */
    SlurmAccountBO getSlurmAccount(String slurmAccount);

    /**
     * 添加slurm用户
     * @param providerBo
     * @param user
     * @param slurmAccount
     */
    void addSlurmUser(HpcAccountProviderBo providerBo, String user, String slurmAccount);

    /**
     * 删除slurm用户
     * @param providerBo
     * @param user
     * @param slurmAccount
     */
    void deleteSlurmUser(HpcAccountProviderBo providerBo, String user, String slurmAccount);

    /**
     * 更新slurm用户
     * @param providerBo
     * @param user
     * @param slurmAccount
     */
    void updateSlurmUser(HpcAccountProviderBo providerBo, String user, String slurmAccount);
}
